
<template>
    
    <el-form ref="form" :model="form" class="form">
        <div class="title">修改发布</div>
        <el-form-item class="inputBox">
            <el-input type="text" :model="form.name" style="height: 50px;">
            </el-input>
            <span class="span-blur">能力名称</span>
            
           
        </el-form-item>
        <el-form-item class="inputBox">
            <el-input type="text" ></el-input>
            <span class="span-blur">能力创建者</span>
        </el-form-item>

    </el-form>
</template>
<script>



export default {
    data() {
        return {
                form: {
                    name:'',


        }
    }
},

methods: {
   
}
}
</script>
<style scoped lang="scss">
* {
    margin: 0 auto;
    padding: 0;
    box-sizing: border-box;

}
.input-style{
    height: 50px;
}


.form {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 300px;
    width: 900px;
    flex-direction: column;
    gap: 30px;
    border-radius: 10px;
    margin-top: 50px;
    border: 1px solid rgb(190, 190, 190);
    .title{
        font-size: 20px;
        font-weight: 600;
    }
}

 .input-blur {
    position: relative;
    height: 45px;
    width: 100%;
    padding: 10px;
    border: 1px solid rgb(54, 114, 202);
    border-radius: 5px;
    outline: none;
    font-size: 1em;

}
.inputBox .input-focus {
    border: 1px solid #02cab3;
}

.inputBox {
    position: relative;
    width: 620px;
    margin-bottom: 20px;
}
.inputBox:focus-within {
    span{
   
    position: absolute;
    left: 10px;
    top: -9px;
    padding: 0 10px;
    pointer-events: none;
    font-size: 12px;
    border: none;
    background-color: rgb(52, 133, 255);
    color: white;
    height: 20px;
    line-height: 20px;
    text-align: center;
    border-radius: 5px;
    transition: 0.2s;

    
}}

.inputBox .span-focus {
    position: absolute;
    left: 10px;
    top: -9px;
    padding: 0 10px;
    pointer-events: none;
    font-size: 12px;
    border: none;
    background-color: rgb(52, 133, 255);
    color: white;
    height: 20px;
    line-height: 20px;
    text-align: center;
    border-radius: 5px;
    transition: 0.3s;

}
span{
    position: absolute;
    left: 10px;
    top: -8px;
    padding: 0 10px;
    pointer-events: none;
    font-size: 12px;
    color: #02cab3;
    background: white;
    border-left: 1px solid #02cab3;
    border-right: 1px solid #02cab3;
    height: 16px;
    line-height: 16px;
    text-align: center;
    border-radius: 0;
}



</style>